package com.java.tutorials.designpattern.behavioral.Iterator.threadmediator;

public class MediatorDemo {
    public static void main (String[] args) {
        Mediator mb = new Mediator ();
        new Producer (mb).start ();
        new Producer (mb).start ();
        new Consumer (mb).start ();
        new Consumer (mb).start ();
        new Consumer (mb).start ();
        new Consumer (mb).start ();
    }
}
